package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmpInfoXcxShowExample.E_IS_SHOW;
import static org.jsola.hr.example.EmpInfoXcxShowExample.E_MODULE_CODE;
import static org.jsola.hr.example.EmpInfoXcxShowExample.E_MODULE_NAME;
import static org.jsola.hr.example.EmpInfoXcxShowExample.M_MODULE_CODE_MAX;
import static org.jsola.hr.example.EmpInfoXcxShowExample.M_MODULE_CODE_NOT_NULL;
import static org.jsola.hr.example.EmpInfoXcxShowExample.M_MODULE_NAME_MAX;
import static org.jsola.hr.example.EmpInfoXcxShowExample.M_MODULE_NAME_NOT_NULL;
import static org.jsola.hr.example.EmpInfoXcxShowExample.N_IS_SHOW;
import static org.jsola.hr.example.EmpInfoXcxShowExample.N_MODULE_CODE;
import static org.jsola.hr.example.EmpInfoXcxShowExample.N_MODULE_NAME;

/**
 * 员工小程序展示项
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工小程序展示项】的参数")
@Data
public class EmpInfoXcxShowUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_MODULE_NAME, example = E_MODULE_NAME, required = true)
    @NotNull(message = M_MODULE_NAME_NOT_NULL)
    @Length(max = 50, message = M_MODULE_NAME_MAX)
    private String moduleName;

    @ApiModelProperty(notes = N_MODULE_CODE, example = E_MODULE_CODE, required = true)
    @NotNull(message = M_MODULE_CODE_NOT_NULL)
    @Length(max = 30, message = M_MODULE_CODE_MAX)
    private String moduleCode;

    @ApiModelProperty(notes = N_IS_SHOW, example = E_IS_SHOW)
    private Boolean isShow;


}

